import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false

import { Button, Menu, Layout, Icon, Breadcrumb, Tooltip, Input, Switch, Popover, Row, Col, Divider, message } from 'ant-design-vue';

Vue.use(Button)
Vue.use(Menu)
Vue.use(Layout)
Vue.use(Icon)
Vue.use(Breadcrumb)
Vue.use(Tooltip)
Vue.use(Input)
Vue.use(Switch)
Vue.use(Popover)
Vue.use(Row)
Vue.use(Col)
Vue.use(Divider)
Vue.prototype.$message = message;

// 项目自定义全局样式
import './assets/main.less'

// 引入mock数据
import './mock'

// 权限验证
import './permission'

// 初始化信息
store.dispatch('setSysInfo')

// `Vue.$http` and `this.$http`
import { VueAxios } from './request'
Vue.use(VueAxios)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
